//
//  componentCHelper.h
//  componentC
//
//  Created by dev on 04/09/2018.
//  Copyright (c) 2017 GMS. All rights reserved.
//

#import "componentCHelper.h"

NSBundle *componentc_resourceBundle(Class class) {
    static NSBundle *componentCBundle = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        componentCBundle = [NSBundle bundleForClass:class];
        if (componentCBundle) {
            NSString *resourceBundlePath = [componentCBundle pathForResource:@"componentCBundle" ofType:@"bundle"];
            if (resourceBundlePath && [[NSFileManager defaultManager] fileExistsAtPath:resourceBundlePath]) {
                componentCBundle = [NSBundle bundleWithPath:resourceBundlePath];
            }
        }
    });
    return componentCBundle;
}

@implementation componentCHelper

@end
